#coding=utf-8



import yagmail

# yag = yagmail.SMTP(user='2509570379@qq.com', host='smtp.qq.com', port=25)
yag = yagmail.SMTP(user='2509570379@qq.com', host='smtp.qq.com')
# yag = yagmail.SMTP(user='2509570379@qq.com',password='bjbpyfxqivkaebcf', host='smtp.qq.com')
contents = ['This is the body, and here is just text http://somedomain/image.png',
            'You can find an audio file attached.', '/local/path/song.mp3']
# yag.send('to@someone.com', 'subject', contents)
yag.send('571716604@qq.com', 'yagmail测试', contents)